package abstractfactory

// 阿里云工厂实现
type AliyunFactory struct {
}

func (f *AliyunFactory) CreateComputeResource(instanceType string) ComputeResource {
	return &AliyunCompute{
		instanceType: instanceType,
	}
}

func (f *AliyunFactory) CreateStorageResource(bucketName string) StorageResource {
	return &AliyunStorage{
		bucketName: bucketName,
	}
}

func (f *AliyunFactory) CreateNetworkResource(loadBalancerName string) NetworkResource {
	return &AliyunNetwork{
		loadBalancerName: loadBalancerName,
	}
}